import { http } from '@/utils/http'
import type { GoodsResult } from '@/types/goods'

const goodsInfo = (id: string) => {
  return http<GoodsResult>({
    method: 'GET',
    url: `/goods?`,
    data: {
      id,
    },
  })
}

export { goodsInfo }
